import { createRouter, createWebHistory } from 'vue-router'
const constantRoutes = [
  {
    name: 'index',
    path: '/',
    meta: {
      title: '登陆',
    },
    component: () => import('@/views/Login.vue'),
  },
  {
    name: 'record',
    path: '/record',
    meta: {
      title: '行情记录',
    },
    component: () => import('@/views/market/Record.vue'),
  },
]

const router = createRouter({
  history: createWebHistory(),
  routes: constantRoutes,
})

export default router
